Display method and apparatus

ABSTRACT

One example display method includes in response to receiving a display request from a target display device, determining a first display device and a second display device that support display of a target service, when a first distance between the first display device and a user is less than a second distance between the second display device and the user, obtaining current first display data of the target service from the target display device and sending the current first display data to the first display device, and when that the first distance reported by the first display device is greater than the second distance reported by the second display device is subsequently obtained, obtaining current second display data of the target service from the target display device and sending the current second display data to the first display device and the second display device.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a national stage of International Application No.PCT/CN2017/107893, filed on Oct. 26, 2017, which is hereby incorporatedby reference in its entirety.

TECHNICAL FIELD

Embodiments of this application relate to the field of communicationstechnologies, and in particular, to a display method and an apparatus.

BACKGROUND

In a smart home (smart home, also referred to as home automation), ahouse is used as a platform, and household life related facilities areintegrated by using an integrated cabling technology, a networkcommunications technology, a security protection technology, anautomatic control technology, and an audio and video technology, toconstruct an efficient management system for residential facilities andfamily schedule affairs, thereby improving safety, convenience, comfortand artistry of home, and achieving an environmental and energy-savingliving environment.

Currently, in some smart home application scenarios, a plurality ofsmart appliances in a same network may be automatically managed based ona location of a user. For example, when it is detected that the userenters a living room, a television in the living room is used to displaya medium, and when it is detected that the user enters a bedroom, themedium is switched to and played on a television in the bedroom.

However, in a period of time in which the user moves from the livingroom to the bedroom, seamless switchover of the medium between the twotelevisions cannot be implemented, reducing efficiency of interworkingbetween a plurality of devices.

SUMMARY

Embodiments of this application provide a display method and anapparatus, to implement seamless switchover of a display service betweena plurality of devices, thereby improving efficiency of collaborationbetween the plurality of devices.

To achieve the foregoing objectives, the following technical solutionsare used in the embodiments of this application.

According to a first aspect, an embodiment of this application providesa display method, including: A control device receives a display requestsent by a target display device when the target display device needs todisplay a target service. In response to the display request, thecontrol device determines a first display device and a second displaydevice that support display of the target service. Then, the controldevice requests the first display device to report a first distance awayfrom a user, and requests the second display device to report a seconddistance away from the user. When the first distance is less than thesecond distance, it indicates that the user is closer to the firstdisplay device. The control device may obtain current first display dataof the target service from the target display device, and send the firstdisplay data to the first display device, so that the first displaydevice displays the target service based on the first display data. Whenthe control device subsequently obtains that the first distance reportedby the first display device is less than the second distance reported bythe second display device, it indicates that the user is closer to thesecond display device in this case. The control device may obtaincurrent second display data of the target service from the targetdisplay device, and send the second display data to the first displaydevice and the second display device, so that both the first displaydevice and the second display device display the target service based onthe second display data.

In other words, when the control device switches the target service fromthe first display device to the second display device, both the firstdisplay device and the second display device display the target servicein a period of time. In this way, the user may still view the targetservice played in real time in a process of leaving the first displaydevice and approaching the second display device, to ensure that thetarget service can be smoothly switched between different displaydevices, and seamless connection of the target service between thedifferent display devices is implemented in terms of user vision,thereby improving efficiency of collaboration between a plurality ofdevices.

In a possible design method, the first display data includes at leastone layer that is of all layers of the target service and that supportsdisplay by the first display device; and/or the second display dataincludes at least one layer that is of all layers of the target serviceand that supports display by the second display device.

In a possible design method, after that the control device sends thesecond display data to the first display device and the second displaydevice, the method further includes: When preset duration in which thesecond display device displays the target service expires, it may beconsidered that the user has moved to a viewing range of the seconddisplay device, and therefore, the control device may stop sending thesecond display data to the first display device, to reduce powerconsumption of the first display device.

In a possible design method, after that the control device sends thesecond display data to the first display device and the second displaydevice, the method further includes: When the second distance betweenthe second display device and the user is less than a preset distancethreshold, it may be determined that a current focus of the user hasbeen transferred to the second display device, and therefore, thecontrol device may stop sending the second display data to the firstdisplay device, to reduce power consumption of the first display device.

In a possible design method, after that the control device sends seconddisplay data to the first display device and the second display device,the method further includes: When the second distance between the seconddisplay device and the user is less than a preset distance threshold,the control device determines duration in which the distance between theuser and the second display device is less than the distance threshold;and if the duration is greater than a preset duration threshold, it mayfurther be determined that a current focus of the user has beentransferred to the second display device, and therefore, the controldevice may stop sending the second display data to the first displaydevice.

In a possible design method, after that the control device sends thefirst display data to the first display device, the method furtherincludes: When the control device subsequently obtains that the firstdistance reported by the first display device is equal to the seconddistance reported by the second display device, the control deviceinstructs the first display device and the second display device toperform face detection. If a face detection result reported by the firstdisplay device is obtained, it indicates that a current focus of theuser falls on the first display device. In this case, the control devicemay continue sending the current second display data of the targetservice to the first display device without needing to switch the targetservice to the second display device for display, so that the firstdisplay device continues displaying the target service.

Correspondingly, if a face detection result reported by the seconddisplay device is obtained, it indicates that the current focus of theuser has been transferred from the first display device to the seconddisplay device. Therefore, the control device may send the currentsecond display data of the target service to the first display deviceand the second display device, so that both the first display device andthe second display device display the target service, to ensure that thetarget service can be smoothly switched between the different displaydevices. In addition, seamless connection of the target service betweenthe different display devices is implemented in terms of user vision,thereby improving efficiency of collaboration between a plurality ofdevices.

According to a second aspect, an embodiment of this application providesa display method, including: When displaying a target service, a firstdisplay device sends a display request of the target service to acontrol device. In response to the display request, the control devicedetermines a second display device supporting display of the targetservice. The control device requests the first display device to reporta first distance away from a user, and requests the second displaydevice to report a second distance away from the user. When the firstdistance is greater than the second distance, it indicates that the useris closer to the second display device in this case. While instructingthe first display device to continue displaying the target service, thecontrol device may obtain current display data of the target servicefrom the first display device, and send the current display data of thetarget service to the second display device. In this case, the firstdisplay device and the second display device each have the currentdisplay data of the target service, so that both the first displaydevice and the second display device can display the target servicebased on the display data.

According to a third aspect, an embodiment of this application providesa display method, including: A target display device backs up aninstalled application, a stored file, and stored data in a controldevice, and keeps synchronous with the control device. When needing todisplay a target service, the target display device sends a displayrequest of the target service to the control device. In response to thedisplay request, the control device determines a first display deviceand a second display device that can support display of the targetservice. Then, the control device requests the first display device toreport a first distance away from a user, and requests the seconddisplay device to report a second distance away from the user. When thefirst distance is less than the second distance, it indicates that theuser is closer to the first display device in this case, and the controldevice may instruct the first display device to display the targetservice. When the control device subsequently obtains that the firstdistance reported by the first display device is less than the seconddistance reported by the second display device, it indicates that theuser is closer to the second display device in this case. The controldevice may send current display data of the target service to the seconddisplay device, and instruct the first display device to continuedisplaying the target service, so that both the first display device andthe second display device can display the target service based on thecurrent display data of the target service.

According to a fourth aspect, an embodiment of this application providesa display method, including: When displaying a target service, a firstdisplay device determines that a candidate device that can display thetarget service further includes a second display device. In this case,the first display device may obtain a first distance away from a user,and instruct the second device to report a second distance away from theuser. When the first distance is greater than the second distance, itindicates that the user is closer to the second display device in thiscase, and the first display device may send current display data of thetarget service to the second display device. In this case, the firstdisplay device and the second display device each have the currentdisplay data of the target service, so that both the first displaydevice and the second display device can display the target servicebased on the display data.

According to a fifth aspect, an embodiment of this application providesa display system, including a control device, and a first displaydevice, a second display device, and a target display device thatcommunicate with the control device. The target display device isconfigured to: when needing to display a target service, send a displayrequest to the control device. The control device is configured to: inresponse to the display request, determine the first display device andthe second display device that support display of the target service;request the first display device to report a first distance away from auser, and request the second display device to report a second distanceaway from the user; and when the first distance is less than the seconddistance, obtain current first display data of the target service fromthe target display device, and send the first display data to the firstdisplay device. The first display device is configured to display thetarget service based on the first display data. The control device isfurther configured to: when subsequently obtaining that the firstdistance reported by the first display device is less than the seconddistance reported by the second display device, obtain current seconddisplay data of the target service from the target display device, andsend the second display data to the first display device and the seconddisplay device. The first display device is further configured todisplay the target service based on the second display data. The seconddisplay device is configured to display the target service based on thesecond display data.

According to a sixth aspect, an embodiment of this application providesa control device, including a processor, and a memory and a transceiverthat are both connected to the processor. The memory stores programcode, and the processor runs the program code to instruct the controldevice to perform the following steps: receiving a display request sentby a target display device when the target display device needs todisplay a target service; determining, in response to the displayrequest, a first display device and a second display device that supportdisplay of the target service; requesting the first display device toreport a first distance away from a user, and requesting the seconddisplay device to report a second distance away from the user; when thefirst distance is less than the second distance, obtaining current firstdisplay data of the target service from the target display device, andsending the first display data to the first display device, so that thefirst display device displays the target service based on the firstdisplay data; and when that the first distance reported by the firstdisplay device is less than the second distance reported by the seconddisplay device is subsequently obtained, obtaining current seconddisplay data of the target service from the target display device, andsending the second display data to the first display device and thesecond display device, so that both the first display device and thesecond display device display the target service based on the seconddisplay data.

In a possible design method, the first display data includes at leastone layer that is of all layers of the target service and that supportsdisplay by the first display device; and/or the second display dataincludes at least one layer that is of all layers of the target serviceand that supports display by the second display device.

In a possible design method, after the sending second display data tothe first display device and the second display device, the program codefurther includes: when preset duration in which the second displaydevice displays the target service expires, stopping sending the seconddisplay data to the first display device.

In a possible design method, after the sending second display data tothe first display device and the second display device, the program codefurther includes: when the second distance is less than a presetdistance threshold, stopping sending the second display data to thefirst display device.

In a possible design method, after the sending second display data tothe first display device and the second display device, the program codefurther includes: when the second distance is less than a presetdistance threshold, determining duration in which the distance betweenthe user and the second display device is less than the distancethreshold; and if the duration is greater than a preset durationthreshold, stopping sending the second display data to the first displaydevice.

In a possible design method, after the sending first display data to thefirst display device, the program code further includes: when that thefirst distance reported by the first display device is equal to thesecond distance reported by the second display device is subsequentlyobtained, instructing the first display device and the second displaydevice to perform face detection; and if a face detection resultreported by the first display device is obtained, obtaining the currentsecond display data of the target service from the target displaydevice, and sending the second display data to the first display device;or if a face detection result reported by the second display device isobtained, obtaining the current second display data of the targetservice from the target display device, and sending the second displaydata to the first display device and the second display device.

In a possible design method, the control device further includes adisplay connected to the processor, and the display is configured todisplay the target service based on the first display data and/or seconddisplay data sent by the target display device.

According to a seventh aspect, an embodiment of this applicationprovides a computer-readable storage medium, storing an instruction,where when the instruction is run on any one of the foregoing controldevices, the control device is enabled to perform any one of theforegoing display methods.

According to an eighth aspect, an embodiment of this applicationprovides a computer program product including an instruction, where whenthe computer program product is run on any one of the foregoing controldevices, the control device is enabled to perform any one of theforegoing display methods.

In the embodiments of this application, names of the foregoing controldevices and a name of each component in the control device do notconstitute a limitation on the devices. During actual implementation,these devices or components may appear by using other names. Providedthat functions of the devices or components are similar to those in theembodiments of this application, the devices or components fall withinthe scope of the claims and their equivalent technologies of thisapplication.

In addition, for technical effects brought by any one of the designmethods in the second aspect to the eighth aspect, refer to technicaleffects brought by different design methods in the first aspect. Detailsare not described herein again.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic architectural diagram 1 of a display systemaccording to an embodiment of this application;

FIG. 2 is a schematic structural diagram 2 of a display system accordingto an embodiment of this application;

FIG. 3 is a schematic structural diagram 3 of a display system accordingto an embodiment of this application;

FIG. 4 is a schematic diagram of layer division according to anembodiment of this application;

FIG. 5 is a schematic structural diagram 4 of a display system accordingto an embodiment of this application;

FIG. 6 is a schematic structural diagram 5 of a display system accordingto an embodiment of this application;

FIG. 7 is a schematic structural diagram 6 of a display system accordingto an embodiment of this application;

FIG. 8(a), FIG. 8(b) and FIG. 8(c) are a schematic structural diagram ofa display system according to an embodiment of this application;

FIG. 9 is a schematic structural diagram of a mobile phone according toan embodiment of this application;

FIG. 10 is a schematic flowchart 1 of a display method according to anembodiment of this application;

FIG. 11 is a schematic diagram 1 of an application scenario of a displaymethod according to an embodiment of this application:

FIG. 12 is a schematic diagram 2 of an application scenario of a displaymethod according to an embodiment of this application:

FIG. 13 is a schematic diagram 3 of an application scenario of a displaymethod according to an embodiment of this application:

FIG. 14 is a schematic flowchart 2 of a display method according to anembodiment of this application;

FIG. 15 is a schematic diagram 4 of an application scenario of a displaymethod according to an embodiment of this application;

FIG. 16 is a schematic diagram 5 of an application scenario of a displaymethod according to an embodiment of this application:

FIG. 17 is a schematic diagram 6 of an application scenario of a displaymethod according to an embodiment of this application:

FIG. 18 is a schematic diagram 7 of an application scenario of a displaymethod according to an embodiment of this application:

FIG. 19 is a schematic diagram 8 of an application scenario of a displaymethod according to an embodiment of this application:

FIG. 20 is a schematic diagram 9 of an application scenario of a displaymethod according to an embodiment of this application:

FIG. 21 is a schematic diagram 10 of an application scenario of adisplay method according to an embodiment of this application; and

FIG. 22 is a schematic structural diagram of a control device accordingto an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

The terms “first” and “second” mentioned below are merely intended for apurpose of description, and shall not be understood as an indication orimplication of relative importance or implicit indication of a quantityof indicated technical features. Therefore, a feature limited by “first”or “second” may explicitly or implicitly include one or more features.In the description of the embodiments of this application, unlessotherwise stated, “a plurality of” means two or more than two.

A display method provided in an embodiment of this application may beapplied to a display system 100 shown in FIG. 1.

As shown in FIG. 1, the display system 100 includes a control device 200and at least two display devices (for example, a mobile phone 201, asmart television 202, and a tablet computer 203 shown in FIG. 1) thatcan communicate with the control device 200.

The control device 200 may be connected to each display device by usinga wireless network (for example, Wi-Fi, Bluetooth, or a cellular mobilenetwork) or a wired network (for example, an optical fiber). This is notlimited in this embodiment of this application.

In some embodiments of this application, the control device 200 storesdevice information that can reflect a display capability and the like ofeach display device. The mobile phone 201 is used as an example. Afterestablishing a connection to the control device 200, as shown in FIG. 2,the mobile phone 201 may send device information of the mobile phone 201to the control device 200, for example, screen resolution of the mobilephone 201, a rendering capability of a graphics processing unit(Graphics Processing Unit, GPU), and a frequency of a central processingunit (Central Processing Unit, CPU). The control device 200 stores thereceived device information of the mobile phone 201 in a memory of thecontrol device 200 for recording.

Similarly, for each display device connected to the control device 200,device information of the display device may be recorded in the controldevice 200. Subsequently, when a display device initiates a targetservice (for example, playing a video or running a game) that needs tobe displayed, the display device may send a corresponding displayrequest and display data corresponding to the target service to thecontrol device 200. In this case, the control device 200 may determine,based on the recorded device information of each display device, aproper display device as a target device for the current target service,and send the display data corresponding to the target service to thetarget device for display.

For example, as shown in FIG. 3, both the mobile phone 201 and the smarttelevision 202 are connected to the control device 200. After receivinga video call service, the mobile phone 201 may analyze attributeinformation of a to-be-displayed layer that needs to be displayed forthe video call service, for example, analyze content (a video, a text,or a picture), a size, and privacy that are of the layer, and then themobile phone 201 may add, to a display request, the attributeinformation that is of the to-be-displayed layer and that is obtainedthrough analysis, and send the display request to the control device200.

A layer (view or layer) is a basic composition unit of a displayinterface on a display device. After a plurality of layers are stackedin sequence, a final display effect of the display interface is formed.Each layer may include one or more controls, and a definition rule iconof each layer and a sequence of the plurality of layers may be definedby a developer during application development. An Android system is usedas an example. Some basic layers, such as ImageView, AdapterView, andRelativeLayout, are defined in the Android system. A developer may useor modify these basic layers to draw a customized layer.

As shown in FIG. 4, a chat interface of a WeChat application is used asan example. A status bar 401 of WeChat and an input bar 404 used forinput that are in the chat interface may be defined as layer 1, and achat background in the chat interface is defined as layer 2, a chatrecord of a user in the chat interface is defined as layer 3, and layer3 is located above layer 2.

In this case, when the mobile phone 201 needs to display the chatinterface (namely, the target service) in FIG. 4, the WeChat applicationmay determine, according to a predefined layer rule, three layersincluded in the chat interface layer 1 to layer 3, and analyzeattributes, such as content (a video, a text, or a picture), a size, andprivacy, of each layer. For example, privacy such as a contact portraitand a name is included in layer 1 and layer 3, and therefore, privacy oflayer 1 and layer 3 is relatively high. However, privacy of the user isnot included in layer 2, and therefore privacy of layer 2 is relativelylow. Then, attribute information of layer 1 to layer 3 that is obtainedthrough analysis is added to the display request, and the displayrequest is sent to the control device 200.

Still as shown in FIG. 3, because the device information of each displaydevice is recorded in the control device 200, the control device 200 maymatch the attribute information of the to-be-displayed layer sent by themobile phone 201 with the device information of each display device. Forexample, when the attribute information indicates that the size of theto-be-displayed layer is 10 M and the privacy is relatively weak, butthe recorded smart television 202 can support display of a layer whosesize is greater than 8M and privacy is relatively weak, the controldevice 200 may use the smart television 202 as a target device fordisplaying the foregoing video call service.

In this case, the control device 200 may send response information ofthe display request to the mobile phone 201, to trigger the mobile phone201 to generate display data of the video call service (namely, data ofthe to-be-displayed layer) and send the display data to the controldevice 200. As shown in FIG. 3, the control device 200 sends the displaydata to the smart television 202, so that the smart television 202displays an image of the video call service originally received by themobile phone 201.

Certainly, if a connection relationship is established between themobile phone 201 and the smart television 202, the control device 200may also add an identifier of the smart television 202 to the responseinformation. In this way, the mobile phone 201 may send, based on theidentifier of the smart television 202, the generated display data ofthe video call service to the smart television 202 for display.

Alternatively, the control device 200 may have an image processingcapability, for example, an image rendering capability. In this case,after receiving the display data of the video call service generated bythe mobile phone 201, the control device 200 may perform secondaryrendering on the display data based on the device information such asresolution of the smart television 202, to obtain display data thatconforms to a display capability of the smart television 202, and sendthe display data to the smart television 202 for display.

It may be learned that, in the display method provided in thisembodiment of this application, the plurality of display devices of theuser may be interconnected with the control device 200, and the deviceinformation of each display device is recorded in the control device200, so that the control device may intelligently select, based on thedevice information of each display device, a proper target device forthe current target service, and project a layer corresponding to thetarget service to the target device for display.

In other words, any display device in the display system 100 may be usedas a source device that provides screen source data when triggering thetarget service, and the control device 200 in the display system 100 mayintelligently determine a screen-projection occasion and a controlleddevice displaying the target service, so that the source device and thecontrolled device in a multi-screen display scenario may be flexibly setbased on a service requirement, thereby improving efficiency ofcollaboration between the plurality of devices.

In some other embodiments of this application, as shown in FIG. 5, eachdisplay device in the display system 100 may further back up all data ofthe display device in the control device 200. For example, the mobilephone 201 may back up all installed applications, stored files, andstored data in the control device 200.

In this case, as shown in FIG. 6, when a display device (for example,the mobile phone 201) initiates a new target service, the mobile phone201 may directly transfer the target service to the control device 200.Because the control device 200 includes all data of the mobile phone201, the control device 200 may analyze, in place of the mobile phone201, attribute information of a to-be-displayed layer of the targetservice for the mobile phone 201, and then select a proper target device(for example, the smart television 202) for the target service based onthe attribute information, and may further generate, in place of themobile phone 201, the to-be-displayed layer and send the to-be-displayedlayer to the smart television 202 for display.

In this way, provided that the mobile phone 201 initiating the targetservice reports the target service to the control device 200, a smartscreen projection function of projecting the target service to anotherdisplay device for display can be implemented, thereby reducingimplementation complexity and power consumption of each display devicein the display system 100.

In addition, when determining the proper target device for the targetservice, the control device 200 may further obtain a distance betweenthe user and each display device in the display system 100 in this case,and determine a display device closest to the user as the target devicefor displaying the target service.

For example, as shown in FIG. 7, the user places the mobile phone 201 ina living room and enters a bedroom to turn on the smart television 202.After receiving a video call service, the mobile phone 201 sendsattribute information of a to-be-displayed layer of the video callservice to the control device 200. The control device 200 may determine,based on the attribute information of the to-be-displayed layer, aplurality of display devices that support display of the to-be-displayedlayer, for example, the tablet computer 203, the smart television 202,and the mobile phone 201. In this case, the control device 200 mayobtain a distance between the user and each of the three display devicesby using a sensor that is disposed on the display device, for example, adistance sensor or a camera, and then use a display device closest tothe user (for example, the smart television 202 located in the bedroomin FIG. 7) as a target device for displaying the to-be-displayed layer.

It should be noted that a specific implementation form of the controldevice 200 in the display system 100 is not limited in this embodimentof this application. For example, as shown in (a) in FIG. 8, the controldevice 200 may be connected to each display device in a form of anindependent entity device. Alternatively, as shown in (b) in FIG. 8, thecontrol device 200 may be integrated in one or more display devices in aform of a function module. In other words, the control device 200 mayalternatively be a display device that has a display function and thatis in the display system 100. For example, in (b) in FIG. 8, the mobilephone 201 may be used as the control device 200 of the display system100, and meanwhile, the mobile phone 201 is also a display device in thedisplay system 100. Alternatively, as shown in (c) in FIG. 8, thecontrol device 200 may be one or more servers (or virtual machines)disposed in a cloud. In this case, each display device in the displaysystem 100 may establish a connection relationship with the controldevice 200 in the cloud by using a same user account. This is notlimited in this embodiment of this application.

In addition, in the foregoing embodiment, an example in which the targetservice of the display device is projected to another display device fordisplay is used for description. It may be understood that a terminalconnected to the control device 200 in the display system 100 mayalternatively be a terminal having another output function, for example,a Bluetooth speaker having an audio output function. In this case, whenreceiving a to-be-played audio service initiated by any terminal, thecontrol device 200 may intelligently select a proper audio playingdevice for the terminal to perform the to-be-played audio service. Thisis not limited in this embodiment of this application.

In some embodiments of this application, the display device (or thecontrol device 200) in the display system 100 may specifically be anyterminal such as a mobile phone, a wearable device, an augmented reality(augmented reality, AR)/virtual reality (virtual reality, VR) device, atablet computer, a notebook computer, an ultra-mobile personal computer(ultra-mobile personal computer, UMPC), a netbook, or a personal digitalassistant (personal digital assistant, PDA). Certainly, a specific formof the terminal is not limited in the following embodiments.

As shown in FIG. 9, the following specifically describes an embodimentby using an example in which a mobile phone 201 is used as a displaydevice in a display system 100. It should be understood that the mobilephone 201 shown in the figure is merely an example of the foregoingterminal, and the mobile phone 201 may have more or fewer componentsthan those shown in the figure and may combine two or more components orhave different component configurations.

As shown in FIG. 9, the mobile phone 201 may specifically include partssuch as a processor 101, a radio frequency (radio frequency, RF) circuit102, a memory 103, a touchscreen 104, a Bluetooth apparatus 105, one ormore sensors 106, a Wi-Fi apparatus 107, a positioning apparatus 108, anaudio circuit 109, a peripheral interface 110, and a power system 111.These parts may perform communication by using one or morecommunications buses or signal cables (not shown in FIG. 9). A personskilled in the art may understand that a hardware structure shown inFIG. 9 does not constitute a limitation on the mobile phone, and themobile phone 201 may include more or fewer components than those shownin the figure, or combine some parts, or have different partarrangements.

The parts of the mobile phone 201 are described in detail below withreference to FIG. 9.

The processor 101 is a control center of the mobile phone 201. Theprocessor 101 is connected to the parts of the mobile phone 201 by usingvarious interfaces and lines, and performs various functions of themobile phone 201 and processes data by running or executing anapplication program stored in the memory 103 and invoking data stored inthe memory 103. In some embodiments, the processor 101 may include oneor more processing units. Optionally, an application processor and amodem processor may be integrated into the processor 101. Theapplication processor mainly processes an operating system, a userinterface, an application program, and the like, and the modem processormainly processes wireless communication. Optionally, the modem processorand the application processor may alternatively be independent of eachother.

In this embodiment of this application, the processor 101 may include aGPU 115 and a CPU 116, or may be a combination of a GPU 115, a CPU 116,a digital signal processing (digital signal processing, DSP), and acontrol chip (for example, a baseband chip) in a communications unit. Inan implementation of this application, the GPU 115 and the CPU 116 eachmay be a single computing core, or may include a plurality of computingcores.

The GPU 115 is a microprocessor specially used for performing imagecomputing on a personal computer, a workstation, a game console, andsome mobile devices (such as a tablet computer and a smartphone). TheGPU 115 may convert and drive display information required by the mobilephone 201, provides a row scanning signal to a display 104-2, andcontrol correct display of the display 104-2.

Specifically, in a display process, the GPU 115 may send a correspondingdrawing command to the GPU 115. For example, the drawing command may be“draw a rectangle with a length and width of a and b respectively at acoordinate position (x, y)”. In this case, the GPU 115 may quicklycalculate all pixels of the graphic according to the drawinginstruction, and draw the corresponding graphic at the specifiedposition on the display 104-2.

It should be noted that the GPU 115 may be integrated in the processor101 in a form of a function module, or may be disposed in the mobilephone 201 in an independent entity form (for example, a video card).This is not limited in this embodiment of this application.

The radio frequency circuit 102 may be configured to receive and send aradio signal in an information receiving and sending process or in acall process. Particularly, after receiving downlink data from a basestation, the radio frequency circuit 102 may send the downlink data tothe processor 101 for processing. In addition, the radio frequencycircuit 102 sends related uplink data to the base station. Usually, theradio frequency circuit includes but is not limited to an antenna, atleast one amplifier, a transceiver, a coupler, a low noise amplifier, aduplexer, and the like. In addition, the radio frequency circuit 102 mayfurther communicate with another device through wireless communication.The wireless communication may use any communication standard orprotocol that includes but is not limited to a global system for mobilecommunications, a general packet radio service, code division multipleaccess, wideband code division multiple access, long term evolution, anemail, a short message service, and the like.

The memory 103 is configured to store an application program and data.The processor 101 performs various functions of the mobile phone 201 andprocesses data by running the application program and the data stored inthe memory 103. The memory 103 mainly includes a program storage areaand a data storage area. The program storage area may store an operatingsystem, and an application program required by at least one function(for example, a sound play function or an image play function). The datastorage area may store data (for example, audio data or a phone book)created based on use of the mobile phone 201. In addition, the memory103 may include a high-speed random access memory (random access memory,RAM), or may include a non-volatile memory such as a magnetic diskstorage device, a flash storage device, or another volatile solid-statestorage device. The memory 103 may store various operating systems suchas an iOS®, operating system developed by Apple and an Android®operating system developed by Google. The memory 103 may be independent,and is connected to the processor 101 by using the communications bus.Alternatively, the memory 103 may be integrated into the processor 101.

The touchscreen 104 may specifically include a touchpad 104-1 and thedisplay 104-2.

The touchpad 104-1 may collect a touch event (for example, an operationperformed by a user on or near the touchpad 104-1 by using any properobject such as a finger or a stylus) performed by the user of the mobilephone 201 on or near the touchpad 104-1, and send collected touchinformation to another component (for example, the processor 101). Thetouch event performed by the user near the touchpad 104-1 may bereferred to as a floating touch. The floating touch may mean that theuser does not need to directly touch the touchpad for selecting, moving,or dragging a target (for example, an icon), and the user only needs tobe near the terminal to perform a desired function. In addition, thetouchpad 104-1 may be implemented in a plurality of types such as aresistive type, a capacitive type, an infrared type, or a surfaceacoustic wave type.

The display (also referred to as a display screen) 104-2 may beconfigured to display information entered by the user or informationprovided for the user, and various menus of the mobile phone 201. Thedisplay 104-2 can be configured in a form of a liquid crystal display,an organic light emitting diode, or the like. The touchpad 104-1 maycover the display 104-2. When detecting the touch event on or near thetouchpad 104-1, the touchpad 104-1 transfers the touch event to theprocessor 101 to determine a type of the touch event. Then, theprocessor 101 can provide a corresponding visual output on the display104-2 based on the type of the touch event. Although the touchpad 104-1and the display screen 104-2 in FIG. 9 are used as two independent partsto implement input and output functions of the mobile phone 201, in someembodiments, the touchpad 104-1 and the display screen 104-2 may beintegrated to implement the input and output functions of the mobilephone 201. It may be understood that the touchscreen 104 is formed bystacking layers of materials. In this embodiment of this application,only the touchpad (layer) and the display screen (layer) are displayed,and another layer is not described in this embodiment of thisapplication. In addition, the touchpad 104-1 may be disposed on a frontfacet of the mobile phone 201 in a full panel form, and the display104-2 may also be disposed on the front facet of the mobile phone 201 inthe full panel form, so that a frameless structure of the front facet ofthe mobile phone can be implemented.

The mobile phone 201 may further include the Bluetooth apparatus 105,configured to exchange data between the mobile phone 201 and anotherterminal (for example, a mobile phone or a smartwatch) at a shortdistance away from the mobile phone 201. In this embodiment of thisapplication, the Bluetooth apparatus may be an integrated circuit, aBluetooth chip, or the like.

The mobile phone 201 may further include at least one sensor 106 such asa fingerprint collection component 112, a light sensor, a motion sensor,and another sensor. Specifically, the fingerprint collection component112 may be disposed on a back facet (for example, under a rear-facingcamera) of the mobile phone 201, or on the front facet (for example,under the touchscreen 104) of the mobile phone 201. For another example,the fingerprint collection component 112 may alternatively be configuredin the touchscreen 104 to implement a fingerprint recognition function.In other words, the fingerprint collection component 112 may beintegrated with the touchscreen 104 to implement the fingerprintrecognition function of the mobile phone 201. The light sensor mayinclude an ambient light sensor and a proximity sensor. The ambientlight sensor may adjust luminance of the display of the touchscreen 104based on ambient light luminance. The proximity sensor may power off thedisplay when the mobile phone 201 approaches to an ear. As a motionsensor, an accelerometer sensor can detect a value of acceleration ineach direction (usually, three axes), can detect a value and a directionof gravity in a static state, and can be used in an application foridentifying a mobile phone posture (such as screen switching between alandscape mode and a portrait mode, a related game, and magnetometerposture calibration), a function related to vibration identification(such as a pedometer and a knock), and the like. Other sensors such as agyroscope, a barometer, a hygrometer, a thermometer, and an infraredsensor may also be disposed in the mobile phone 201. Details are notdescribed herein.

In this embodiment of this application, the sensor 106 of the mobilephone 201 further includes a distance sensor 113, configured to sense adistance between the mobile phone 201 and an object (or the user) tocomplete a preset function. According to different working principles,the distance sensor may be classified into an optical distance sensor,an infrared distance sensor, an ultrasonic distance sensor, or the like.This is not limited in this embodiment of this application.

The Wi-Fi apparatus 107 is configured to provide, for the mobile phone201, network access that complies with a Wi-Fi-related standardprotocol. The mobile phone 201 may access a Wi-Fi access point by usingthe Wi-Fi apparatus 107, to help the user receive and send an email,browse a web page, access streaming media, and the like. The Wi-Fiapparatus 107 provides a wireless broadband internet access for theuser. In some other embodiments, the Wi-Fi apparatus 107 mayalternatively be used as a Wi-Fi wireless access point, and may provideanother terminal with Wi-Fi network access.

The positioning apparatus 108 is configured to provide a geographiclocation for the mobile phone 201. It may be understood that thepositioning apparatus 108 may specifically be a receiver of apositioning system such as a global positioning system (GPS), the Beidounavigation satellite system, or the GLONASS of Russia. After receivingthe geographic location sent by the positioning system, the positioningapparatus 108 sends the information to the processor 101 for processing,or sends the information to the memory 103 for storage. In some otherembodiments, the positioning apparatus 108 may alternatively be areceiver of an assisted global positioning system (AGPS). The AGPSsystem serves as an assisted server to assist the positioning apparatus108 in completing ranging and positioning services. In this case, theassisted positioning server communicates with a terminal, for example,the positioning apparatus 108 (namely, the GPS receiver) of the mobilephone 201, through a wireless communications network, to providepositioning assistance. In some other embodiments, the positioningapparatus 108 may alternatively be a positioning technology based on aWi-Fi access point. Each Wi-Fi access point has a globally unique mediaaccess control (media access control, MAC) address. The terminal canscan and collect a broadcast signal of a surrounding Wi-Fi access pointwhen Wi-Fi is enabled. Therefore, the terminal can obtain a MAC addressbroadcast by the Wi-Fi access point. The terminal sends such data (forexample, the MAC address) that can identify the Wi-Fi access point to alocation server by using the wireless communications network. Thelocation server retrieves a geographic location of each Wi-Fi accesspoint, calculates a geographic location of the terminal with referenceto strength of the Wi-Fi broadcast signal, and sends the geographiclocation of the terminal to the positioning apparatus 108 of theterminal.

The audio circuit 109, a speaker 113, and a microphone 114 may provideaudio interfaces between the user and the mobile phone 201. The audiocircuit 109 may transmit, to the speaker 113, an electrical signalconverted from received audio data, and the speaker 113 converts theelectrical signal into a sound signal for output. In addition, themicrophone 114 converts a collected sound signal into an electricalsignal, and the audio frequency circuit 109 converts the electricalsignal into audio data after receiving the electrical signal, and thenoutputs the audio data to the RF circuit 102 to send the audio data to,for example, another mobile phone, or outputs the audio data to thememory 103 for further processing.

The peripheral interface 110 is configured to provide various interfacesfor external input/output devices (such as a keyboard, a mouse, anexternal display, an external memory, and a subscriber identity modulecard). For example, the mouse is connected by using a universal serialbus (universal serial bus, USB) interface, and the subscriber identitymodule (subscriber identification module. SIM) card provided by atelecommunications operator is connected by using a metal contact on acard slot of the subscriber identity module card. The peripheralinterface 110 may be configured to couple the external input/outputperipheral devices to the processor 101 and the memory 103.

The mobile phone 201 may further include the power supply apparatus 111(for example, a battery and a power management IC) that supplies powerto the parts. The battery may be logically connected to the processor101 by using the power management IC, so that functions such as chargingmanagement, discharging management, and power consumption management areimplemented by using the power supply apparatus 111.

Although not shown in FIG. 9, the mobile phone 201 may further include acamera (a front-facing camera and/or the rear-facing camera), aflashlight, a micro projection apparatus, a near field communication(near field communication, NFC) apparatus, and the like. Details are notdescribed herein.

With reference to the display system 100 shown in FIG. 1 to FIG. 8(a),FIG. 8(b) and FIG. 8(c) and the mobile phone 201 shown in FIG. 9, in anembodiment of this application, a networking method of the displaysystem 100 is shown in FIG. 10, and includes the following steps.

801 a. A first display device sends a first connection request to acontrol device.

802 a. After receiving the first connection request, the control deviceestablishes a connection relationship with the first display device.

In steps 801 a and 802 a, an example in which the first display device(for example, the foregoing mobile phone 201) actively establishes aconnection to the control device is used for description.

In some embodiments of this application, after the control device 200accesses a network, for example, a local area network whose Wi-Fi nameis “1234”, the control device 200 may add an identifier (for example, aMAC address of the control device 200) of the control device 200 tofirst indication information for periodic broadcast. The firstindication information is used to indicate that the device is thecontrol device 200. In this case, after the mobile phone 201 alsoaccesses the local area network whose Wi-Fi name is “1234”, the mobilephone 201 may receive the first indication information, to determine thecurrent control device 200.

Then, as described in step 801 a, a processor of the mobile phone 201may invoke, based on the identifier of the control device 200, a Wi-Fiapparatus of the mobile phone 201 to send the first connection requestto the control device 200 by using the Wi-Fi network named “1234”. Thefirst connection request is used to request to establish the connectionrelationship between the mobile phone 201 and the control device 200,and the first connection request may carry an identifier of the mobilephone 201 (for example, a MAC address of the mobile phone 201).

In this case, after the control device 200 receives the first connectionrequest sent by the mobile phone 201, as described in step 802 a, thecontrol device 200 may store the identifier of the mobile phone 201 in amemory, to establish the connection relationship with the mobile phone201. Subsequently, both the control device 200 and the mobile phone 201can find each other by using the identifier of the control device 200and the identifier of the mobile phone 201, to perform communication.

In some other embodiments of this application, after the mobile phone201 and a plurality of other devices access a same network (for example,the local area network whose Wi-Fi name is “1234”), as shown in FIG. 11,a candidate control device list 1001 may be displayed in a displayinterface of the mobile phone 201. The user selects a control device inthe local area network. For example, the user taps “My phone”, namely,the mobile phone 201, in the candidate control device list 1001.

In this case, after detecting this entry operation of the user, themobile phone 201 can set the mobile phone 201 as the control device 200,and add the identifier of the mobile phone 201 to the first indicationinformation for periodic broadcast. In this case, after receiving thefirst indication information, another display device in the local areanetwork may add an identifier of the display device to the firstconnection request, and send the first connection request to the mobilephone 201 (namely, the control device), so that the mobile phone 201stores the received identifier, to establish a connection relationshipwith each display device in the local area network.

801 b. The control device sends a second connection request to the firstdisplay device.

802 b. After receiving the second connection request, the first displaydevice establishes the connection relationship with the control device.

In steps 801 b and 802 b, an example in which the control deviceactively establishes a connection to the first display device (namely,the mobile phone 201) is used for description.

Similar to the foregoing steps 801 a and 802 a, the control device 200can add the identifier of the control device 200 to the secondconnection request, and send the second connection request to the mobilephone 201. In this case, after receiving the second connection request,the mobile phone may store the identifier of the control device 200, andsend the identifier of the mobile phone 201 to the control device 200,so that the control device 200 also stores the identifier of the mobilephone 201 in the memory of the control device, to establish theconnection relationship with the mobile phone 201. Subsequently, boththe control device 200 and the mobile phone 201 can find each other byusing the identifier of the control device 200 and the identifier of themobile phone 201, to perform communication.

It should be noted that, in the foregoing embodiments, an example inwhich the first display device establishes the connection relationshipwith the control device is used for description. Another display devicemay also establish a connection relationship with the control devicebased on the foregoing method, to build the display systems 100 shown inFIG. 1 to FIG. 8(a), FIG. 8(b) and FIG. 8(c).

803. The first display device sends device information of the firstdisplay device to the control device.

804. After receiving the device information, the control device storesthe device information in the memory of the control device forrecording.

That the mobile phone 201 is used as the first display device is stillused as an example. In step 803, because the mobile phone 201 hasestablished the connection relationship with the control device, themobile phone 201 may send the device information of the mobile phone 201to the control device based on the stored identifier of the controldevice 200, for example, a parameter reflecting a display capability ofthe mobile phone 201 such as screen resolution of the mobile phone 201,a rendering capability of a GPU, and a frequency of a CPU, a parameterreflecting an audio playing capability such as an audio format supportedby the mobile phone 201, and a parameter reflecting whether display ofuser privacy is supported. This is not limited in this embodiment ofthis application.

The user privacy may specifically include information such as securetransaction information (for example, a stock transaction page),information having a chat nature (for example, an SMS message or amessage notification), location information of the user, andinformation, such as a contact number, that cannot be disclosed by theuser forever.

For example, whether the display device supports display of the userprivacy may be determined based on a parameter such as a type of thedisplay device and/or a geographical location of the display device. Forexample, when the display device is a device with strong mobility, forexample, a mobile phone or a wearable device, because the user usuallycarries such a device, in other words, privacy of the device isrelatively high, it may be determined that the device supports displayof the user privacy. When the display device is a device with weakmobility, for example, a Bluetooth speaker or a smart television,because a location of such device is relatively fixed and the deviceusually cannot be moved with movement of the user, in other words,privacy of the device is relatively low, therefore, it may be determinedthat the device does not support display of the user privacy.

Then, in step 804, after receiving the device information sent by themobile phone 201, the control device 200 may store a correspondencebetween the mobile phone 201 and the device information of the mobilephone 201 in the memory of the control device 200 for recording.

The control device 200 may record received device information of eachdisplay device. As shown in Table 1, the device information of eachdisplay device is maintained in the control device 200. Subsequently,when a target service needs to be displayed, the control device 200 maydetermine, for the target service and based on the recorded deviceinformation of each display device, a proper display device as a targetdevice for displaying the target service.

TABLE 1 Device information Playing Support Display capability capabilityprivacy Display CPU GPU Supported display device Resolution capabilitycapability format or not Mobile 1920 × 1080 Strong Strong MP3 and Yesphone 201 WAV Smart 3840 × 2160 Weak Weak MP3 No television 202 Tablet2560 × 1440 Strong Middle MP3 and Yes computer WAV 203

For example, after receiving an incoming call service, the mobile phone201 may send, to the control device 200, attribute information ofattributes of one or more to-be-displayed layers related to the incomingcall service, for example, resolution supported by the to-be-displayedlayer, a CPU capability and a GPU capability that are supported by theto-be-displayed layer, and whether user privacy is included in theto-be-displayed layer. The control device 200 matches the receivedattribute information of the to-be-displayed layer with the deviceinformation of each display device recorded in Table 1, to obtain one ormore display devices that support display of the to-be-displayed layer.

For example, the control device 200 determines that the mobile phone201, the smart television 202, and the tablet computer 203 in Table 1all support display of the to-be-displayed layer of the incoming callservice. In this case, to facilitate the user to learn of the incomingcall service in time, when the mobile phone 201, the smart television202, and the tablet computer 203 all remain connected to the controldevice 200, the control device may send second instruction informationto the mobile phone 201, the smart television 202, and the tabletcomputer 203. The second instruction information is used to instruct thedisplay device to report a distance away from the user.

Then, after receiving the second instruction information, the mobilephone 201, the smart television 202, and the tablet computer 203 eachmay obtain the distance away from the user through periodic detection bya distance sensor (for example, a camera or an infrared sensor) of themobile phone 201, the smart television 202, or the tablet computer 203or in another existing manner, and report the distance obtained throughdetection to the control device 200. In this way, the control device 200may determine a display device closest to the user, for example, thesmart television 202 in the bedroom, as the target device for displayingthe to-be-displayed layer of the incoming call service. In addition, thetarget device may be selected based on a real-time distance in a processof performing the incoming call service. In the process of performingthe incoming call service, when the distances between the user and theplurality of display devices change, the incoming call service may befreely switched on the plurality of display devices, thereby improvingefficiency of collaboration between the plurality of devices whilegreatly improving user experience.

In this embodiment of this application, a house structure diagramshowing a location of each display device may also be pre-stored in thecontrol device 200. FIG. 12 is a schematic structural diagram of a housethat includes a room and a hall and that is owned by the user. Eachdisplay device in the display system 100 may report location informationof the display device to the control device 200 by using a positioningapparatus (for example, a GPS), and the control device may determine aspecific location of each display device in the house of the user withreference to the schematic structural diagram shown in FIG. 12. As shownin FIG. 12, television 1 is placed in a bedroom, television 1 and mobilephone 3 are placed in a living room, and tablet computer 4 is placed ina kitchen.

In this case, when the control device 200 determines, based on thedistance between the user and each display device, the target devicedisplaying the target service, with reference to the specific locationof each display device shown in FIG. 12, the control device 200 maydetermine a display device (for example, television 1 in the living roomin FIG. 12) that is in a same room with the user and that is closest tothe user as the target device, to avoid a problem that the user cannotprocess the target service in time because the target device determinedfor the user is not in the room where the user is located.

In addition, each display device in the rooms may further periodicallyreport the distance between the user and the display device to thecontrol device 200, for example, report the distance between the userand the display device every 30 seconds. Therefore, when the user movesin the rooms, for example, as shown in FIG. 13, when the user moves frompoint A in the living room to point B at a door of the bedroom, thecontrol device may obtain the distance between the user and each displaydevice in real time. When the distance D between the user and television1 in the bedroom is less than the distance D2 between the user andtelevision 2 in the living room, the target service may be dynamicallyswitched from television 2 in the living room to television 1 that is inthe bedroom and closest to the user.

However, when the control device 200 switches the target service fromtelevision 2 to television 1, the user may not enter the bedroom, or maynot enter an optimal viewing area in the bedroom, and consequently, theuser misses a related image of the target service.

Therefore, an embodiment of this application provides a display method.That the foregoing display system 100 includes a control device 200, anda first display device and a second display device that are connected tothe control device 200 is used as an example. As shown in FIG. 14, themethod includes the following steps.

901. The control device obtains a first distance between the firstdisplay device and a user, and a second distance between the seconddisplay device and the user.

Specifically, a distance sensor may be disposed in each of the firstdisplay device and the second display device. The first display devicemay measure the current first distance away from the user by using thedistance sensor of the first display device, and the second displaydevice may measure the current second distance away from the user byusing the distance sensor of the second display device. Then, the firstdisplay device and the second display device may separately send themeasured first distance and second distance to the control device.

Certainly, if the user is not within a ranging range of the firstdisplay device (or the second display device) at the moment, forexample, the second display device does not detect the user in thebedroom, it may be considered that the distance between the seconddisplay device and the user is infinite.

Alternatively, one or more cameras connected to the control device mayfurther be disposed in the display system 100, and the control devicemay capture a user image by using the camera. In this case, the firstdistance between the first display device and the user and the seconddistance between the second display device and the user may bedetermined in combination with a pre-stored location of each displaydevice.

Certainly, because a wearable device (or a mobile phone) is usuallycarried by the user, the control device may further obtain a positioningresult of the user by using a positioning apparatus of the wearabledevice (or the mobile phone), and then determine, in combination withthe pre-stored locations of the display devices, the first distancebetween the first display device and the user and the second distancebetween the second display device and the user.

Optionally, the control device may alternatively obtain the firstdistance and the second distance in another existing manner such as byusing indoor positioning. This is not limited in this embodiment of thisapplication.

In some embodiments of this application, when the control devicereceives a display request initiated by a target service, the controldevice may be triggered to obtain the first distance and the seconddistance. For example, as shown in FIG. 15, when the user plays a videoin a video play app on a mobile phone, the mobile phone may send adisplay request of a video playing service to the control device. Afterreceiving the display request, the control device may first determine,based on the recorded device information of each display device in Table1, a display device supporting the video playing service, for example,the first display device and the second display device. Then, thecontrol device may send a distance request to the first display deviceand the second display device, to request the first display device toreport the first distance between the first display device and the user,and request the second display device to report the second distancebetween the second display device and the user. After receiving thedistance request, the first display device and the second display devicemay be triggered to periodically detect and report the distance betweenthe first display device and the user and the distance between thesecond display device and the user.

Certainly, the mobile phone in FIG. 15 may also be used as the firstdisplay device or the second display device. This is not limited in thisembodiment of this application.

902. When the first distance is less than the second distance, thecontrol device instructs the first display device to run the targetservice.

903. The first display device displays the target service in real time.

When the first distance D1 is less than the second distance D2, as shownin FIG. 16, it indicates that the first display device is closer to theuser, and the foregoing video playing service is still used as anexample. In this case, the control device may send, to the first displaydevice in real time for display, a to-be-displayed layer generated whenthe mobile phone runs the video playing service, so that the firstdisplay device can display the to-be-displayed layer of the videoplaying service in real time.

The to-be-displayed layer may include some layers during running of thevideo playing service. For example, the control device may remove alayer that includes user privacy during running of the video playingservice, and send, to the first display device, a layer that does notinclude privacy as the to-be-displayed layer. Alternatively, the controldevice may send, to a third display device that supports display of userprivacy, a layer that includes user privacy during running of the videoplaying service, and send, to the first display device, a layer thatdoes not include privacy as the to-be-displayed layer. Certainly, theto-be-displayed layer may alternatively include all layers duringrunning of the video playing service. This is not limited in thisembodiment of this application.

In addition, when the first distance D1 is less than the second distanceD2, if the first distance is less than a preset value, for example, thedistance between the user and the first display device is less than 3meters (or another preset distance), or duration in which the distancebetween the user and the first display device is less than 3 meters (oranother preset distance) is greater than preset duration, the controldevice may be triggered to instruct the first display device to run thetarget service, to avoid a problem that when the user quickly passesthrough the first display device, the first display device is triggeredto display the target service, increasing power consumption of the firstdevice.

Certainly, before the control device sends, to the first display device,the to-be-displayed layer generated when the mobile phone runs the videoplaying service, the control device may further perform secondaryrendering on the to-be-displayed layer sent by the mobile phone, forexample, adjust a size of the to-be-displayed layer to adapt toresolution of the first display device. This is not limited in thisembodiment of this application.

904. The control device continues obtaining the first distance betweenthe first display device and the user, and the second distance betweenthe second display device and the user.

While the first display device displays a real-time image of the targetservice, the first display device and the second display device maycontinue detecting and reporting the distance between the first displaydevice and the user and the distance between the second display deviceand the user, so that the control device continues obtaining the firstdistance D1 between the first display device and the user, and thesecond distance D2 between the second display device and the user.

905. When the first distance is greater than the second distance, thecontrol device sends a first instruction to the first display device,and sends a second instruction to the second device.

The first instruction is used to instruct the first display device tocontinue displaying the target service in real time, and the secondinstruction is used to instruct the second display device to display thetarget service in real time starting from a target image currentlydisplayed by the first display device.

In addition, before sending the second instruction to the second displaydevice, the control device may first determine whether the seconddisplay device is currently in a connected mode to the control device,in other words, whether the second display device is online. When thesecond display device is online, the control device may be triggered tosend the second instruction to the second display device.

However, when the second display device is offline, the control devicemay re-establish a connection relationship with the second displaydevice, and then send the second instruction to the second displaydevice. Alternatively, when the second display device is offline, thecontrol device may reselect another display device that is currentlycloser to the user and that is in a connected mode to the controldevice, and send the second instruction to the display device. This isnot limited in this embodiment of this application.

906. In response to the first instruction, the first display devicecontinues displaying the target service in real time within the presetduration.

907. In response to the second instruction, the second display devicedisplays the target service in real time starting from a target layercurrently displayed by the first display device.

When the first distance D1 is greater than the second distance D2, asshown in FIG. 17, it indicates that the second display device is closerto the user in this case, and the user tends to move towards the seconddisplay device. The foregoing video playing service is still used as anexample. When video A is played to 3 minutes and 45 seconds, the controldevice obtains that the first distance D1 reported by the first displaydevice is greater than the second distance D2 reported by the seconddisplay device. In this case, the control device may send, to the seconddisplay device, the to-be-displayed layer generated when the mobilephone runs the video playing service, in other words, send the secondinstruction to the second display device. After receiving the secondinstruction, the second display device may continue to display theto-be-displayed layer of the video playing service starting from adisplay image (namely, the foregoing target layer) of video A at 3minutes and 45 seconds.

It should be noted that the to-be-displayed layer generated when thesecond display device displays the target service may be the same as ordifferent from the to-be-displayed layer generated when the firstdisplay device displays the target service. For example, when the seconddisplay device supports display of user privacy but the first displaydevice does not support display of privacy, the to-be-displayed layersent by the control device to the second display device may include alayer related to user privacy, for example, a layer including a contactnumber and SMS message content, but the to-be-displayed layer sent bythe control device to the first display device does not include a layerrelated to user privacy.

For the first display device, the control device continues sending ato-be-displayed layer of video A after three minutes and 45 seconds tothe first display device instead of immediately stopping sending theto-be-displayed layer of the video playing service to the first displaydevice. In other words, when the control device switches the videoplaying service from the first display device to the second displaydevice, the first display device and the second display devicesimultaneously display same images in a period of time.

A reason is that a process in which the user moves from the firstdisplay device to the second display device is a continuous process.When it is detected that the first distance D1 is greater than thesecond distance D2, still as shown in FIG. 17, the user may not enterthe room in which the second display device is located in this case, orthe user may not enter a viewing area of the second display device (forexample, an area that is located three meters away from the seconddisplay device and in front of the second display device). In this case,if video A played by the first display device is closed, the user maymiss a corresponding playing segment. In other words, seamlessconnection of the target service viewed by the user cannot beimplemented between the first display device and the second device.

Therefore, when it is detected that the first distance D1 is greaterthan the second distance D2, in addition to switching the video playingservice from the first display device to the second display device, thecontrol device continues sending the to-be-displayed layer of the videoplaying service to the first display device, so that the first displaydevice continues displaying the video playing service for a period oftime (for example, 30 seconds). In this way, the user can still view thevideo playing service played in real time before leaving the room inwhich the first display device is located, thereby ensuring that thevideo playing service can be stably transited when being switchedbetween different display devices. In addition, seamless connection ofthe video playing service on the different display devices isimplemented, thereby improving efficiency of collaboration between theplurality of devices.

Further, to enable the first display device and the second displaydevice to play the video playing service at the same time as much aspossible, the control device may send the to-be-displayed layer of thetarget service to the first display device and the second display deviceat the same time. In this way, the first display device and the seconddisplay device may immediately display the to-be-displayed layer of thetarget service after receiving the to-be-displayed layer, therebyimproving synchronization of playing the video playing service by thefirst display device and the second display device.

Alternatively, a synchronization mechanism may be preset between thedisplay devices of the display system, so that system time of the firstdisplay device is synchronized with that of the second display device.In this case, the control device may add a display time point of thetarget service to the first instruction sent to the first display deviceand to the second instruction sent to the second display device. In thisway, when the display time point arrives, the first display device andthe second display device may be triggered to simultaneously play thetarget service, to improve synchronization of playing the video playingservice by the first display device and the second display device.

908. When the control device obtains that the second distance betweenthe second display device and the user is less than a distancethreshold, the control device sends a close instruction to the firstdisplay device, to enable the first display device to stop displayingthe target service.

Optionally, in step 908, after switching the video playing service fromthe first display device to the second display device, the controldevice may further continue obtaining the second distance D2 between theuser and the second display device. As shown in FIG. 18, when the seconddistance D2 between the second display device and the user is less thanthe distance threshold, for example, less than three meters, itindicates that a current focus of the user has been transferred to thesecond display device. In this case, the control device may stop sendingthe to-be-displayed layer of the video playing service to the firstdisplay device, so that the first display device stops displaying thevideo playing service (namely, the target service), to reduce powerconsumption of the first display device.

Further, the control device may determine duration in which the seconddistance between the second display device and the user is less than thethreshold. If the duration is greater than a duration threshold, itindicates that the user has stayed in front of the second display devicefor a period of time. In this case, the control device may be triggeredto send the close instruction to the first display device, to enable thefirst display device to stop displaying the target service.

In addition, if the first display device does not receive, within thepreset duration, the to-be-displayed layer that is of the video playingservice and that is sent by the control device, the first display devicemay stop sending the first distance between the first display device andthe user to the control device, to reduce power consumption of the firstdisplay device.

Certainly, after the control device stops sending the to-be-displayedlayer of the video playing service to the first display device, thefirst display device may still continue periodically sending the firstdistance between the first display device and the user to the controldevice, so that in a subsequent movement process of the user, thecontrol device may determine in time, based on the first distance,whether to switch the video playing service to the first display deviceuntil the control device sends an instruction for stopping reporting thefirst distance to the first display device. This is not limited in thisembodiment of this application.

In addition, after step 904, if the control device obtains that thefirst distance is equal to the second distance, in other words, thedistance between the user and the first display device is equal to thedistance between the user and the second display device, still as shownin FIG. 14, the method further includes steps 909 and 910.

909. The first display device and the second display device separatelyperform face detection (or human eye detection).

When the first distance is equal to the second distance, the controldevice may determine the current focus of the user based on anorientation of a face (or an eye) of the user, and further determinewhether to switch the video playing service from the first displaydevice to the second display device.

Specifically, a camera may be disposed on each of the first displaydevice and the second display device. In this way, the first displaydevice and the second display device each may capture an image of theuser by using the camera, and further recognize the image of the userbased on a face detection (or human eye detection) algorithm. When theface (or the human eye) is recognized, it indicates that a facedetection (or human eye detection) result is obtained in this case.

910. If the first display device obtains the face detection (or humaneye detection) result, the control device instructs the first displaydevice to continue displaying the target service.

If the first display device obtains the face detection (or human eyedetection) result, it indicates that the current focus of the user stillfalls on the first display device in this case, and the control devicemay continue sending, to the first display device, the to-be-displayedlayer that is generated in real time by the video playing service, anddoes not need to switch the video playing service from the first displaydevice to the second display device.

In this embodiment of this application, the first display device and thesecond display device may alternatively periodically capture images ofthe user by using the cameras. In this case, in step 910, when the firstdisplay device obtains the face detection (or human eye detection)result, the control device may further identify, by using a face (orhuman eyes) identification algorithm, whether a face (or a human eye)detected in current detection is the same as the face (or the human eye)detected in previous face detection (or human eye detection). If theface (or the human eye) detected in the current detection is the same asthe face (or the human eye) detected in the previous face detection (orhuman eye detection), it indicates that the user focusing on the firstdisplay device does not change, and the control device may instruct thefirst display device to continue displaying the foregoing targetservice. Otherwise, the control device may ignore a face detection (orhuman eye detection) result reported by the first display device in thecurrent detection.

911. If the second display device obtains the face detection (or humaneye detection) result, the control device performs the foregoing steps905 to 908.

If the second display device obtains a face detection (or human eyedetection) result, it indicates that the current focus of the user hasbeen transferred to the second display device. In this case, the controldevice may switch the video playing service from the first displaydevice to the second display device. For a specific switching method ofthe video playing service, refer to related descriptions in steps 905 to908, and details are not described herein again.

Similar to step 910, when the second display device obtains the facedetection (or human eye detection) result, the control device mayfurther identify, by using the face (or human eye) identificationalgorithm, whether a currently detected face (or human eye) is the sameas a face (or human eye) that is previously reported by the firstdisplay device. If the currently detected face (or human eye) is thesame as the face (or human eye) that is previously reported by the firstdisplay device, it indicates that the user originally focusing on thefirst display device transfers the focus to the second display device.Then, the control device may switch the video playing service from thefirst display device to the second display device by performing theforegoing steps 905 to 908. Otherwise, the control device may ignore theface detection (or human eye detection) result reported by the seconddisplay device this time.

Certainly, the user may also manually switch the target service from thefirst display device to the second display device.

For example, as shown in FIG. 19, the user may select a switched seconddisplay device (for example, a smart television) on a setting interfaceof the first display device. After detecting the selection operation ofthe user, the first display device may add an identifier of the seconddisplay device to a switching request and send the switching request tothe control device. Then, the control device may switch the targetservice from the first display device to the second display deviceaccording to the switching method in the foregoing steps 905 to 908.

For another example, the user may further trigger a switching process ofthe target service by performing a corresponding gesture on the firstdisplay device. As shown in FIG. 20, the mobile phone (the first displaydevice) is displaying a word document 1101. The mobile phone maydetermine a relative position relationship between the mobile phone andthe smart television (the second display device) by using a camera ofthe mobile phone. If the mobile phone detects that the user performs adrag operation on a current display interface of the word document 1101,the mobile phone may determine directivity of the drag operation basedon a moving track of the drag operation on a touchscreen and therelative position relationship between the mobile phone and the smarttelevision. When the drag operation points to the smart television, themobile phone may add an identifier of the smart television to theswitching request and send the switching request to the control device.Then, the control device may switch the word document 1101 from themobile phone to the smart television according to the switching methoddescribed in steps 905 to 908, to continue displaying the word document1101.

Optionally, the mobile phone may further display the determined relativeposition relationship between the mobile phone and the smart televisionon a display screen of the mobile phone in a form of a text, a picture,an animation, or the like, to prompt the user to switch the targetservice between the mobile phone and the smart television by performinga directional drag operation.

Further, in this embodiment of this application, the user mayalternatively select to switch display content in an area on the displayinterface of the first display device to the second display device fordisplay. For example, a current display interface of the first displaydevice includes a plurality of display windows, for example, an inputmethod window 1102 and a window of an SMS message application that aredisplayed by the mobile phone in FIG. 21. In this case, similar to FIG.20, for different windows, the user may drag a selected window to theto-be-switched-to second display device. When the drag operation pointsto the smart television, the mobile phone may add the identifier of thesmart television to the switching request and send the switching requestto the control device. Then, the control device may switch displaycontent in the input method window 1102 from the mobile phone to thesmart television according to the switching method described in steps905 to 908, to continue displaying the display content. Alternatively,the first display device may alternatively divide a screen intodifferent areas in advance, and the user may switch, for differentareas, display content in a selected area to the second display devicefor display. This is not limited in this embodiment of this application.

It may be understood that, to implement the foregoing functions, thecontrol device or the display device include corresponding hardwarestructures and/or software modules for performing the functions. Aperson skilled in the art may be easily aware that, in combination withthe units, algorithm, and steps in the examples described in theembodiments disclosed in this specification, the embodiments of thisapplication can be implemented by hardware or a combination of hardwareand computer software. Whether a function is performed by hardware orhardware driven by computer software depends on particular applicationsand design constraints of the technical solutions. A person skilled inthe art may use different methods to implement the described functionsfor each particular application, but it should not be considered thatthe implementation goes beyond the scope of the embodiments of thisapplication.

In the embodiments of this application, the foregoing terminal may bedivided into function modules based on the foregoing method examples.For example, each function module may be obtained through division basedon each corresponding function, or two or more functions may beintegrated into one processing module. The integrated module may beimplemented in a form of hardware, or may be implemented in a form of asoftware function module. It should be noted that, in the embodiments ofthis application, module division is an example, and is merely a logicalfunction division. During actual implementation, another division mannermay be used.

When the function modules are divided based on corresponding functions,FIG. 22 is a possible schematic structural diagram of the control devicein the foregoing embodiments. The control device includes a receivingunit 2101, a determining unit 2102, and a sending unit 2103.

The receiving unit 2101 is configured to support the control device inperforming the processes 901 and 904 in FIG. 14. The determining unit2102 is configured to support the control device in performing processes902 and 909 in FIG. 14. The sending unit 2103 is configured to supportthe control device in performing the processes 905, 908, and 910 in FIG.14. All related content of the steps in the foregoing method embodimentsmay be cited in function descriptions of corresponding function modules,and details are not described herein again.

The determining unit 2102 is configured to perform control management onan action of the control device. The receiving unit 2101 and the sendingunit 2103 are configured to support a communication process between thecontrol device and another device. In addition, the control device mayfurther include a storage unit, configured to store program code anddata of the control device. For example, the storage unit may beconfigured to store device information sent by each display device.

When the control device is used as a display device in the displaysystem, the control device may further include a display unit,configured to display information entered by a user or informationprovided for a user, and various menus of the control device.

For example, the determining unit 2102 may be a processor, the receivingunit 2101 and the sending unit 2103 may be transceiver devices such asRF circuits or Wi-Fi apparatuses, the storage unit may be a memory, andthe display unit may be a display. In this case, the control deviceprovided in this embodiment of this application may be the mobile phone201 shown in FIG. 9.

All or some of the foregoing embodiments may be implemented by means ofsoftware, hardware, firmware, or any combination thereof. When asoftware program is used to implement the embodiments, the embodimentsmay be implemented completely or partially in a form of a computerprogram product. The computer program product includes one or morecomputer instructions. When the computer program instructions are loadedand executed on a computer, the procedure or functions according to theembodiments of this application are all or partially generated. Thecomputer may be a general-purpose computer, a dedicated computer, acomputer network, or another programmable apparatus. The computerinstructions may be stored in a computer-readable storage medium or maybe transmitted from a computer-readable storage medium to anothercomputer-readable storage medium. For example, the computer instructionsmay be transmitted from a website, computer, server, or data center toanother website, computer, server, or data center in a wired (forexample, a coaxial cable, an optical fiber, or a digital subscriber line(DSL)) or wireless (for example, infrared, radio, and microwave, or thelike) manner. The computer-readable storage medium may be any usablemedium accessible by a computer, or a data storage device, such as aserver or a data center, integrating one or more usable media. Theavailable medium may be a magnetic medium (for example, a floppy disk, ahard disk, or a magnetic tape), an optical medium (for example, a DVD),a semiconductor medium (for example, a solid state drive Solid StateDisk (SSD)), or the like.

The foregoing descriptions are merely specific implementations of thisapplication, but are not intended to limit the protection scope of thisapplication. Any variation or replacement within the technical scopedisclosed in this application shall fall within the protection scope ofthis application. Therefore, the protection scope of this applicationshall be subject to the protection scope of the claims.

What is claimed is:
 1. A display system, comprising a control device,and a first display device, a second display device, and a targetdisplay device of a user that communicate with the control device,wherein: the target display device is configured to: when needing todisplay a target service, send a display request to the control device;the control device is configured to: in response to receiving thedisplay request, determine the first display device and the seconddisplay device that support display of the target service; request thefirst display device to report a first distance between the firstdisplay device and the user, and request the second display device toreport a second distance between the second display device and the user;receive the first distance between the first display device and the userfrom the first display device, and receive the second distance betweenthe second display device and the user from the second display device;and when the first distance is less than the second distance, select thefirst display device to display the target service, obtain current firstdisplay data of the target service from the target display device, andsend the current first display data to the first display device; thefirst display device is configured to display the target service basedon the current first display data; the control device is furtherconfigured to: when subsequently obtaining that the first distancereported by the first display device is greater than the second distancereported by the second display device, obtain current second displaydata of the target service from the target display device, and send thecurrent second display data to the first display device and the seconddisplay device; the first display device is further configured todisplay the target service based on the current second display data; andthe second display device is configured to display the target servicebased on the current second display data.
 2. A display system,comprising a mobile phone and a smart television, wherein: the mobilephone is configured to: receive a video call; after receiving the videocall, obtain attribute information of a first to-be-displayed layer,wherein the first to-be-displayed layer is a layer that needs to bedisplayed for the video call; select the smart television according tothe attribute information; and send display data of the firstto-be-displayed layer to the smart television according to the attributeinformation; and the smart television is configured to: obtain a firstdistance between a user and the smart television using a distance sensoror a camera disposed on the smart television; send the first distancebetween the user and the smart television to the mobile phone; receivethe display data of the first to-be-displayed layer; and display thefirst to-be-displayed layer of the video call based on the display data.3. The display system according to claim 2, wherein the attributeinformation indicates a size of the first to-be-displayed layer and aprivacy attribute of the first to-be-displayed layer; and wherein themobile phone is configured to select the smart television whendetermining that the smart television supports the size of the firstto-be-displayed layer and the privacy attribute of the firstto-be-displayed layer.
 4. The display system according to claim 3,wherein the mobile phone is further configured to: obtain deviceinformation of the smart television before selecting the smarttelevision, wherein the device information of the smart televisioncomprises one or more of screen resolution, a rendering capability of agraphics processing unit (GPU), a frequency of a central processing unit(CPU), a size of a layer that the smart television supports, and privacyattribute of a layer that the smart television supports.
 5. The displaysystem according to claim 2, wherein the attribute information indicatesa size of the first to-be-displayed layer; and wherein the mobile phoneis configured to select the smart television when determining that thesmart television supports the size of the first to-be-displayed layer.6. The display system according to claim 2, wherein the attributeinformation indicates a privacy attribute of the first to-be-displayedlayer; and wherein the mobile phone is configured to select the smarttelevision when determining that the smart television supports theprivacy attribute of the first to-be-displayed layer.
 7. The displaysystem according to claim 2, wherein the mobile phone is configured to:obtain the first distance between the user and the smart television anda second distance between the user and a display device; and select thesmart television to display the first to-be-displayed layer of the videocall when the first distance is less than the second distance.
 8. Thedisplay system according to claim 2, wherein the mobile phone isconfigured to: obtain the first distance between the user and the smarttelevision; and select the smart television to display the firstto-be-displayed layer of the video call when the first distance is lessthan a preset distance.
 9. The display system according to claim 2,wherein the mobile phone is configured to: obtain a third distancebetween the user and the smart television and a fourth distance betweenthe user and a display device after sending the display data of thefirst to-be-displayed layer; and send display data of a secondto-be-displayed layer for the video call to both the smart televisionand the display device when the third distance is greater than thefourth distance.
 10. The display system according to claim 9, whereinthe mobile phone is configured to: obtain the first distance between theuser and the smart television; determine a duration in which the firstdistance is less than a distance threshold; and stop sending the displaydata of the first to-be-displayed layer when the duration is greaterthan a preset distance threshold.
 11. The display system according toclaim 10, wherein the mobile phone is configured to: select the smarttelevision according to the attribute information when the smarttelevision reports a detection result to the mobile phone, wherein thedetection result indicates that the user focuses on the smarttelevision, and wherein the detection result is obtained by the camera.12. A display method, comprising: receiving, by a mobile phone, a videocall; after receiving the video call, obtaining, by the mobile phone,attribute information of a first to-be-displayed layer, wherein thefirst to-be-displayed layer is a layer that needs to be displayed forthe video call; selecting, by the mobile phone, a smart televisionaccording to the attribute information; sending, by the mobile phone,display data of the first to-be-displayed layer to the smart televisionaccording to the attribute information; obtaining, by the smarttelevision, a first distance between a user and the smart televisionusing a distance sensor or a camera disposed on the smart television;sending, by the smart television, the first distance between the userand the smart television to the mobile phone; receiving, by the smarttelevision, the display data of the first to-be-displayed layer; anddisplaying, by the smart television, the first to-be-displayed layer ofthe video call based on the display data.
 13. The display methodaccording to claim 12, wherein the attribute information indicates oneor more of a size of the first to-be-displayed layer and a privacyattribute of the first to-be-displayed layer; and wherein selecting thesmart television according to the attribute information comprises:selecting, by the mobile phone, the smart television when determiningthat the smart television supports the attribute information.
 14. Thedisplay method according to claim 12, wherein the method furthercomprises: obtaining, by the mobile phone, device information of thesmart television before selecting the smart television, wherein thedevice information of the smart television comprises one or more ofscreen resolution, a rendering capability of a graphics processing unit(GPU), a frequency of a central processing unit (CPU), a size of a layerthat the smart television supports, and privacy attribute of a layerthat the smart television supports.
 15. The display method according toclaim 12, wherein the method further comprises: obtaining the firstdistance between the user and the smart television and a second distancebetween the user and a display device; and wherein selecting the smarttelevision according to the attribute information comprises: selecting,by the mobile phone, the smart television to the first to-be-displayedlayer of the video call when the first distance is less than the seconddistance.
 16. The display method according to claim 12, wherein themethod further comprises: obtaining the first distance between the userand the smart television; and wherein selecting the smart televisionaccording to the attribute information comprises: selecting, by themobile phone, the smart television to the first to-be-displayed layer ofthe video call when the first distance is less than a preset distance.17. The display method according to claim 12, wherein the method furthercomprises: obtaining, by the mobile phone, a third distance between theuser and the smart television; obtaining, by the mobile phone, a fourthdistance between the user and a display device after sending the displaydata of the first to-be-displayed layer; and sending, by the mobilephone, display data of a second to-be-displayed layer for the video callto both the smart television and the display device when the thirddistance is greater than the fourth distance.
 18. The display methodaccording to claim 17, wherein the method further comprises: obtainingthe first distance between the user and the smart television;determining a duration in which the first distance is less than adistance threshold; and stopping, by the mobile phone, sending thedisplay data of the first to-be-displayed layer when the duration isgreater than a preset distance threshold.
 19. The display methodaccording to claim 18, wherein selecting the smart television accordingto the attribute information comprises: selecting, by the mobile phone,the smart television according to the attribute information when thesmart television reports a detection result to the mobile phone, whereinthe detection result indicates that the user focuses on the smarttelevision, and wherein the detection result is obtained by the camera.20. The display system according to claim 1, wherein the first distancebetween the first display device and the user is obtained using adistance sensor or a camera disposed on the first display device.